package de.LooLo;

/**
 * Data Representation of one toilet
 * @author Kevin Seppelt, Lukas Siedel 
 *
 */
public class Toilet {

	double latitude;
	double longitude;

	/*
	 * -> fee is sometimes also named "charge" in osm-file (could be "yes"/"no")
	 * -> wheelchair could be "yes"/"no"/"limited"/"designated" 
	 * -> supervised could be "yes"/"no"/"interval"
	 */

	boolean insideBuilding = false;
	String fee = "NaN";
	String wheelchair = "NaN";
	String layer = "NaN";
	String name = "NaN";
	String supervised = "NaN";
	String opening_hours = "NaN";
	Integer id=0;
	
	
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public void toilet() {
	}

	public double getLatitude() {
		return latitude;
	}
	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}
	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public String getFee() {
		return fee;
	}
	public void setFee(String fee) {
		this.fee = fee;
	}

	public String getWheelchair() {
		return wheelchair;
	}
	public void setWheelchair(String wheelchair) {
		this.wheelchair = wheelchair;
	}
	
	public String getLayer() {
		return layer;
	}
	public void setLayer(String layer) {
		this.layer = layer;
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public String getSupervised() {
		return supervised;
	}
	public void setSupervised(String supervised) {
		this.supervised = supervised;
	}

	public String toString() {
		return "Toilet " + name + ": lat=" + latitude + " lon=" + longitude
				+ " wheelchair=" + wheelchair + " layer=" + layer + " fee="
				+ fee + "\n";
	}

	public String getOpening_hours() {
		return opening_hours;
	}
	public void setOpening_hours(String opening_hours) {
		this.opening_hours = opening_hours;
	}
	
	public boolean isInsideBuilding(){
		return insideBuilding;
	}
	public void setInsideBuilding(boolean ib){
		this.insideBuilding = ib;
	}
}
